#include<iostream>
using namespace std;
class Time
{
	friend class Date;
public:
	Time(int hour = 0,int minute = 0,int secunde=0)
		:_hour(hour)
		,_minute(minute)
		,_secunde(secunde)
	{}
private:
	int _hour;
	int _minute;
	int _secunde;
};
class Date
{
	friend ostream& operator<<(ostream& out, const Date& d);
public:
	Date(int year = 0, int month = 1, int day = 1)
		:_year(year)
		,_month(month)
		,_day(day)
	{
		
	}

	void  print()
	{
		_t._hour;
		cout << _year << "-" << _month << "-" << _day << endl;
	}
private:
	int _year;
	int _month;
	int _day;
	Time _t;
};

ostream& operator<<(ostream& out,const Date& d)
{
	cout << d._year << "-" << d._month << "-" << d._day << endl;
	return out;
}
int main()
{
	Date d1;
	d1.print();
	Date d2(2024);
	cout << d1<<d2;
	return 0;
}